function start(uuids, callback) {
  wx.startBeaconDiscovery({
    uuids: uuids,
    success: function (res1) {
      console.log("startBeaconDiscovery…" + res1);
      console.log("startBeaconDiscovery…" + res1.errMsg);
      var myDate = new Date();
      var minute = myDate.getMinutes();
      wx.onBeaconUpdate(function (res) {
        // console.log("onBeaconUpdate…" + res2);
        // beaconArray = res.beacons
        pageModel.setData({
          beaconArray: res.beacons
        })
        console.log(res.beacons)
        // console.log("onBeaconUpdate…" + res2);

      });
    },
    fail: function (res) {
      wx.showModal({
        title: '蓝牙打开失败',
        content: '',
      })
      console.log("onBeaconUpdate…fail…." + res.errMsg);
    }
  });
}

function getbeacions() {
  wx.getBeacons({
    success(beacons) {
      // util.showConfirm('getBeacons', 'getBeacons')
      console.log(beacons)
    }
  })

  setTimeout(function () {
    getbeacions()
  }, 15000)
}